package com.eii.rocketmq.consumer;

import com.eii.rocketmq.entity.OrderPaidEvent;
import lombok.extern.slf4j.Slf4j;
import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.messaging.Message;
import org.springframework.stereotype.Service;

//@Slf4j
//@Service
//@RocketMQMessageListener(topic = "BatchTest-topic", consumerGroup = "my-consumer_string-topic")
//public class SyncGeneralMQBatchConsumer implements RocketMQListener<OrderPaidEvent> {
//
//    @Override
//    public void onMessage(OrderPaidEvent message) {
//        log.info("SyncGeneralMQConsumer1端接收到消息:{}", message);
//    }
//}